<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1 {
	width: 195px;
}

.select_width {
	width: 130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<div class="t_bar"><span class="color_red">*</span>单位近三年项目实施情况</div>
<table id="eq_table1" class="t_css" width="100%">
<col style="width: 5%"/>
<col style="width: 5%"/>
<col style="width: 30%"/>
<col style="width: 30%"/>
<col style="width: 20%"/>
<col style="width: 10%"/>
    <thead >
        <tr style="border:1px solid #B7D1E6">
            <th class="TblHead" align="center">选择</th>
            <th class="TblHead" align="center">序号</th>
            <th class="TblHead" align="center">项目名称</th>
            <th class="TblHead" align="center">计划名称</th>
            <th class="TblHead" align="center">下达部门</th>
            <th class="TblHead" align="center">项目经费<br/>（万元）</th>
        </tr>
    </thead>
    <tbody id="tab">
        <tr style="display:none">
            <td align="center">
                <input type="radio" style="border: 0px;background-color: white;" class="radiobutton" name="selButton1" >
            </td>
            <td align="center">
                <span name="implementations|implementation[0]@seq_no" >[index]</span> 
            </td>
            <td align="center">
                <input type="text" name="implementations|implementation[0]|prj_name" class="required" maxlength="60" style="width:80%" label="项目名称" value="" />
            </td>
            <td align="center">
                <input type="text" name="implementations|implementation[0]|plan_name" class="required" maxlength="60" style="width:80%" label="计划名称" value="" />
            </td>
            <td align="center">
                <input type="text" name="implementations|implementation[0]|issuing_dept" class="required" maxlength="40" style="width:80%" label="下达部门" value="" />
            </td>
            <td align="center">
                <input type="text" name="implementations|implementation[0]|prj_fund" class="required" style="width:80%;text-align: right;" label="项目经费" onfocus="InitInput.setNumber(this,9,2,2);" value="" />
            </td>
        </tr>
    
    
        <c:set value="0" var="index" scope="page"/>
        <x:forEach select="$xmlData/data/implementations/implementation" var="implementation">
            <c:choose>
                <c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
                <c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
            </c:choose>
            <tr>
                <td align="center">
                    <input type="radio" style="border: 0px;background-color: white;" class="radiobutton" name="selButton1" >
                </td>
                <td align="center">
                    <span name="implementations/implementation[${flag}${index}]@seq_no"><x:out select="$implementation/@seq_no"/></span> 
                </td>
                <td align="center">
                    <input type="text" name="implementations/implementation[${flag}${index}]/prj_name" value="<x:out select="$implementation/prj_name" />"  maxlength="60" class="required" style="width:80%" label="项目名称 "/>
                </td>
                <td align="center">
                    <input type="text" name="implementations/implementation[${flag}${index}]/plan_name" value="<x:out select="$implementation/plan_name" />"  maxlength="60" class="required" style="width:80%" label="计划名称 "/>
                </td>
                <td align="center">
                    <input type="text" name="implementations/implementation[${flag}${index}]/issuing_dept" value="<x:out select="$implementation/issuing_dept" />"  maxlength="40" class="required" style="width:80%" label="下达部门"/>
                </td>
                <td align="center">
                    <input type="text" name="implementations/implementation[${flag}${index}]/prj_fund" value="<x:out select="$implementation/prj_fund" />" class="required" style="width:80%;text-align: right;" label="项目经费" onfocus="InitInput.setNumber(this,9,2,2);"/>
                </td>
            </tr>
            <c:set value="${index+1}" var="index" scope="page"/>
        </x:forEach>
    </tbody>
</table>
<table width="98%" align="center">
    <tr>
        <td>
            <input class="button_02" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('eq_table1',999,'单位近三年项目实施情况内容最多只能填写999条')){addNewRow('eq_table1');showDateTag('eq_table1');}try{top.resizeFrame();}catch(e){};">
            <input class="button_02" name="cmdMovePrev" type=button value="上移" onclick="movePrev('eq_table1','selButton1');">
            <input class="button_02" name="cmdMoveNext" type=button value="下移" onclick="moveNext('eq_table1','selButton1');">
            <input class="button_02" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('eq_table1','单位近三年项目实施情况');">
        </td>
    </tr>
</table>